Learn R Programming

Rfast (version 1.3)

Random generation for the binomial distribution with parameters size and prob: Random generation for the binomial distribution with parameters size and prob

Description

Random generation for the binomial distribution with parameters size and prob.

Usage

Rbinom(n,nin,pp)

Arguments

n
The size of the vector to be returned.
nin
The size.
pp
Probubility.

Value

A row vector which is been initialized with binomial's numbers.

Details

s The function is written in C++ and this is why it is very fast.

See Also

Rnorm,Runif

Examples

Run this code
Rbinom(1000,10,0.5)

Run the code above in your browser using DataLab